Api.GetVariable 方法

取得使用者定义变数的细节。

命名空间IntervalZero.KINGSTAR.Local.Api

组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

语法

C#VB
public KsReturn<UserVariable> GetVariable(
       string Name,
       UserVariable Parent = null
)
Public Function GetVariable(
       Name As String,
       Parent = null As UserVariable
) As KsReturn(Of UserVariable)

参数

Name

型别:string

变数名称。

 

Parent

型别:UserVariable

预设值:null

UserVariable 的父资料夹,预设会从根资料夹取得变数。

回传值

型别:KsReturn<UserVariable>

回传一个 KsError 代码及一个使用者定义变数。

备注

可用的 EtherCAT 状态

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

范例

C#
N/A

参见

Api 类别

IntervalZero.KINGSTAR.Local.Api 命名空间